package com.zoespeer.food_delivery_comment_api.vo;

import lombok.Data;
import java.util.List;

@Data
public class CanteenDetailVO {
//    private Integer canteenId;
    private String canteenName;
    private String picture;
    private Double score;
    private Integer commandNum;
    private Integer cost;
    private String address;
    private List<CommandVO> commands; // 原CommentVO改为CommandVO

    @Data
    public static class CommandVO { // 内部类名调整
        private String avatar;
        private String username;
        private Double score;
        private String content;
        private Integer good; // 点赞数关联review表的like_count
        // 新增：评论ID（对应数据库reviews表的review_id）
        private String reviewId;
    }
}